<%@page import="com.crossriver.crgis.database.service.persistence.Application_C_of_OUtil"%>
<%@page import="com.liferay.portal.theme.ThemeDisplay"%>

<%@ page import="com.crossriver.crgis.cofo.util.ApplicationCofOConstants" %>
 
<%@ page import="com.crossriver.crgis.database.model.Application_C_of_O" %>
<%@page import="com.crossriver.crgis.database.model.Individual_Information"%>
<%@page import="com.crossriver.crgis.database.model.History_Of_Information"%>
<%@page import="com.crossriver.crgis.database.model.Contact_Information"%>
<%@page import="com.crossriver.crgis.database.model.Property_Information"%>
<%@page import="com.crossriver.crgis.database.model.Supporting_Document"%>


<%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@ include file="/init.jsp"%>


<%

Application_C_of_O appl =
		(Application_C_of_O)request.getAttribute(
				ApplicationCofOConstants.APPL_C_OF_O_SESSION_ATTR);

Application_C_of_O applicatn = 
	Application_C_of_OUtil.findByPrimaryKey(appl.getApplicationId());

%>


<liferay-portlet:actionURL name="finalSave" var="finalSave"></liferay-portlet:actionURL>

 <aui:form action="<%=finalSave.toString() %>" method="post" name="pickApplicationType_fm">
 <% String app = applicatn.getApplication(); %>
 <div id="main">
	<%
	if("certification".equalsIgnoreCase(app)){
	%>
	<h1>Application for Certificate Of Occupancy</h1>
	<%
	}else if("re-certification".equalsIgnoreCase(app)){
	%>
	<h1>Application for Re-Certificate Of Occupancy</h1>
	<%
	}else {
	%>
	<h1>Application for State Land</h1>
	<%
	}
	%>
	
<aui:input name="buttonClicked" type="hidden" value=""></aui:input>
	<h1>Status - Application for Certificate OfOccupancy</h1>
	<div class="content">
		<table width="60%" align="center" style="border:thin solid #CCC; padding:20px">
			<tr bgcolor="#DFFFDF">
	    	<td width="10%"><img src='${renderRequest.contextPath}/images/success.png'></td>
	      <td width="90%"> Your application was completed! You can <a href="">click here</a> to view the status of your application.</td>
	    </tr>
			<tr>
				<td align="center" colspan=2><br>
					Application ID :<br> <span style="font-weight:bold; font-size:11px"><%=  appl.getApplicationId().toUpperCase() %></span>
				</td>
			</tr>
			<tr>
				<td align="center" colspan=2><br>
			  	<input id="button" type="button" value="Proceed With Payment" onClick="window.location='';">
			  </td>
			</tr>
		</table>
  </div>
</div>
</aui:form>